﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.DB
{
    [Table("OperationLogs")]
    public class OperationLogs
    {
        public long ID { get; set; }

        [MaxLength(20)]
        public string Name { get; set; }

        [MaxLength(200)]
        public string Url { get; set; }

        /// <summary>
        /// get Post
        /// </summary>
        [MaxLength(4)]
        public string Method { get; set; }


        public string Data { get; set; }

        [MaxLength(10)]
        public string UserName { get; set; }

        /// <summary>
        /// IP 地址  127.127.127.127.127.127
        /// </summary>
        [MaxLength(30)]
        public string IP { get; set; }

        [MaxLength(9)]
        public string Key { get; set; }

        [MaxLength(50)]
        public string UserID { get; set; }


        public DateTime CreateDateTime { get; set; }
    }
}
